<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script src="通用兼容文件.js"></script>
		<script> 
		window.onload = function(){
			
		var bgcolor;
		
		
			changercolor();
			
			window.onresize = changercolor;
		//改变颜色
		function changercolor(){
			if(client().width >= 960)
			{
				bgcolor='red';
			}
			else if(client().width >= 640){
				bgcolor='blue';
			}else{
				bgcolor='green';
			}
			document.body.style.backgroundColor = bgcolor;	
		}
		
		
			
		}
		</script>
	</body>
</html>
